<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('初始多表格')" />
    <meta charset="UTF-8">
    <title>查看上传记录</title>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="form1">
                <div class="select-list">
                    <ul>
                        <li>
                            原始word名称：<input type="text" name="oldWordName"/>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search('form1', 'bootstrap-table1')"><i class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset('form1', 'bootstrap-table1')"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>
        <div class="col-xs-12 select-table table-striped">
            <table id="bootstrap-table1"></table>
        </div>
    </div>
</div>

<div th:include="include :: footer"></div>
<script th:inline="javascript">
    var prefix = ctx + "record";
    var datas = [[${@dict.getType('sys_normal_disable')}]];

    $(function() {
        var options = {
            id: "bootstrap-table1",
            formId: "form1",
            url: prefix + "/getRecordList",
            modalName: "文档记录",
            columns: [
                {
                    title: "序号",
                    formatter: function (value, row, index) {
                        return $.table.serialNumber(index);
                    }
                },
                {
                    field : 'oldWordName',
                    title : '原始word名称'
                },
                {
                    field : 'name',
                    title : '原始word文件名'
                },
                {
                    field : 'recordTime',
                    title : '操作时间'
                }]
        };
        $.table.init(options);
    });



    function options1() {
        var temp = "";
        var obj = table.config['bootstrap-table1'];
        for (var i in obj) {
            temp += i + ":" + obj[i] + "<br/>";
        }
        $.modal.alert(temp);
    }
</script>
</body>
</html>